export const DefaultRouter = [
  {
    path: "/briefHome",
    name: "briefHome",
    component: () => import("../views/footer/briefHome.vue"),
    title: "首页",
    svgIcon: "#icon-gedan",
    meta: {
      roles: ["common"],
    },
  },
  {
    path: "/home/personInfo",
    name: "PersonInfo",
    component: () => import("../views/main/PersonInfo.vue"),
    title: "我的",
    svgIcon: "#icon-wode",
    meta: {
      roles: ["common"],
    },
  },
  {
    path: "/home/seachOrder",
    name: "SeachOrder",
    component: () => import("../views/seach/SeachOrder.vue"),
    title: "搜索",
    svgIcon: "#icon-sousuo",
    meta: {
      roles: ["common"],
    },
  },
  {
    path: "/home/rankingList",
    name: "RankingList",
    component: () => import("../views/main/RankingList.vue"),
    title: "榜单",
    svgIcon: "#icon-bangdan",
    meta: {
      roles: ["common"],
    },
  },
  {
    path: "/home/recoment",
    name: "Recoment",
    component: () => import("../views/side/Recoment.vue"),
    title: "推荐",
    svgIcon: "#icon-tuijian",
    meta: {
      roles: ["common"],
    },
  },
  {
    path: "/home/newDiscCode",
    name: "NewDiscCode",
    component: () => import("../views/main/NewDiscCode.vue"),
    title: "新碟MV",
    svgIcon: "#icon-gedan",
    meta: {
      roles: ["common"],
    },
  },
  {
    path: "/Setting",
    name: "Setting",
    component: () => import("../views/seach/Setting.vue"),
    title: "设置",
    svgIcon: "#icon-shezhi",
    meta: {
      roles: ["common"],
    },
  },
  {
    path: "/home/login",
    name: "Login",
    component: () => import("../views/main/Login.vue"),
    //title: "登录",
    //  svgIcon: "#icon-wode",
    hidden: true,
    meta: {
      roles: ["Admin"],
    },
  },
  // {
  //   path: "/home/lyric",
  //   name: "Lyric",
  //   component: () => import("../views/main/Lyric.vue"),
  //   // title: "登录",
  //   // svgIcon: "#icon-wode",
  //   hidden: true,
  //   meta: {
  //     roles: ["Admin"],
  //   },
  // },
  {
    path: "/home/InformationDetails",
    name: "InformationDetails",
    component: () => import("../views/main/InformationDetails.vue"),
    // title: "登录",
    // svgIcon: "#icon-wode",
    hidden: true,
    meta: {
      roles: ["Admin"],
    },
  },
];

export const routes = [
  {
    path: "/home",
    name: "Home",
    // redirect: '../views/Home',
    component: () => import("../views/Home.vue"),
    children: DefaultRouter,
  },

  {
    path: "*",
    redirect: {
      name: "Home",
    },
  },
];
